<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>UseODBCDatabase</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">UseODBCDatabase()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#006666"><b>UseODBCDatabase</b></font>()</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Initialize the ODBC database environment for future use. It attempts to load the ODBC driver 
and allocate the required resources. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>



If Result is 0, then the ODBC driver is not available or is 
too old (ODBC 3.0 or higher is needed) and the Database functions should not be used. 

 

</blockquote><p><b>Remarks</b></p><blockquote>



After calling UseODBCDatabase(), a database has to be opened using <a href="opendatabase.html">OpenDatabase()</a> using 
a registered ODBC database name as database or <a href="opendatabaserequester.html">OpenDatabaseRequester()</a> before using any other Database functions. 
<br>
<br>
It is possible to obtain a list of available drivers by calling the function <a href="examinedatabasedrivers.html">ExamineDatabaseDrivers()</a>. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  UseODBCDatabase</font>()

  <b><font color="#006666">If</font></b> <font color="#006666">OpenDatabase</font>(0, "MySQL-ODBC", "mysql", "mysql")
    <b><font color="#006666">Debug</font></b> "Connected to MySQL"
  <b><font color="#006666">Else</font></b>
    <b><font color="#006666">Debug</font></b> "Connection failed: "+<font color="#006666">DatabaseError</font>()
  <b><font color="#006666">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="opendatabase.html">OpenDatabase()</a>, <a href="usesqlitedatabase.html">UseSQLiteDatabase()</a>, <a href="usepostgresqldatabase.html">UsePostgreSQLDatabase()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=setdatabaseblob.html>SetDatabaseBlob()</a> - <a href=index.html>Database Index</a> - <a href=usepostgresqldatabase.html>UsePostgreSQLDatabase()</a> -&gt;

</body></html>